package Controllers;

import java.awt.BorderLayout;

import javax.swing.JPanel;

import Boundry.LoginPanel;

import Boundry.MainFrame;


public class GuiManager 
{
	private MainFrame mainFrame;
	public GuiManager()
	{
		mainFrame = new MainFrame();	
	}
	
	public void setUserName(String userName)
	{	
		mainFrame.setUserName(userName);
	}
	
	public void switchScreen(JPanel newPanel)
	{
		mainFrame.switchScreen(newPanel);
	}
	public void showFrame()
	{
		mainFrame.setVisible(true);
	}
	public void disappearFrame()
	{
		mainFrame.setVisible(false);
	}
	
	public void showHelpAndUserPanel()
	{
		mainFrame.showSlavePanel();
	}
	public void disappearHelpAndUserPanel()
	{
		mainFrame.disappearSlavePanel();
	}
	
}
